package com.lzq.mybatis.demo.mapper;

import com.lzq.mybatis.demo.model.ArticleInfo;
import com.lzq.mybatis.demo.model.UserInfo;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserInfoXMLMapper {
    public List<UserInfo> queryAllUser();

    public void insertUser(@Param("userInfo") UserInfo userInfo);

    public void delete(Integer id);

    public void update(UserInfo userInfo);

    public List<UserInfo> queryAllUser2();

    public ArticleInfo queryAllById();

    public List<UserInfo> queryByConditions(UserInfo userInfo);

    public void updateByConditions(UserInfo userInfo);

    public List<UserInfo> queryByName1(String username);

    public List<UserInfo> queryByName2(String username);



}
